function resetFontSize() {
    var baseFontSize = 114.3
    var designWidth = 1920
    var width = window.innerWidth
    var currentFontSize = parseInt((width / designWidth) * baseFontSize)
    document.getElementsByTagName('html')[0].style.fontSize =
        currentFontSize + 'px'
}

window.onresize = function () {
    resetFontSize()
}
resetFontSize()